<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>home</title>
</head>
<body>
    <h1>home</h1>

    {% if username %}
        <p>
            当前登录用户 {{ username }}
            <a href="/logout/">注销</a>
        </p>
    {% endif %}

    <a href="/login/">login</a>
</body>
</html>